package com.networkmmc.demo.file;

import cn.hutool.core.io.resource.ResourceUtil;
import cn.hutool.poi.excel.ExcelUtil;

import java.util.List;

public class Excel {

    public static List<List<Object>> readExcel(String filePath, int sheetIndex){
        return ExcelUtil.getReader(ResourceUtil.getStream(filePath), sheetIndex).read();
    }

}
